<template>
	<view>
		<image src="@/static/image/fashi.jpg" mode="aspectFill" class="logo ww100"></image>
		<view class="">
			<picker mode="date" @change="setDate" fields="month" class="picker d-c-c mt20 pt10 pb10 pl20 pr20">
				<view class="d-b-c">
					<view class="mr20 f28">{{ date }}</view>
					<u-icon name="arrow-down"></u-icon>
				</view>
			</picker>
			<view class="mum mt20 d-s-c pl30 pr30">参加次数：{{num}}次</view>
			<!-- <view class="mt40 detail">
				<view class="">参加次数：{{ detail.num }}次</view>
				<view class="mt40">服务时长：({{detail.time}}小时)</view>
			</view> -->
			<view class="list pb80 mb80">
				<view class="item line p30" v-for="(item,index) in 80" :key="index"> 5月5日（学习4小时）</view>
			</view>
			<view class="bottom f40 bg-white pb40 pt10">总学习时长:（12小时）</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				date: '2025年5月',
				num: 4,
				detail: {
					num: 3,
					time: 8
				}
			};
		},
		methods: {
			setDate(e) {
				console.log(e);
				this.date = e.detail.value;
				this.getDetail();
			},
			async getDetail() {
				const res = await this.$request({
					url: this.$api.service,
					data: { date: this.date }
				});
				if (res.code == 0) {
					this.detail = res.data;
				}
			}
		}
	};
</script>

<style scoped lang="scss">
	.bottom {
		position: fixed;
		text-align: center;
		left: 0;
		bottom: 0;
		width: 100%;
	}

	.logo {
		height: 400rpx;
	}

	.mum {
		color: #fff;
		height: 70rpx;
		background-color: #FF7E11;
	}
</style>